﻿@model HomeModel
@{
	Layout = null;
}
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>@Resources.AboutUs@ConstValues.strDash@Resources.HuiTongCIS</title>
	<link rel="stylesheet" type="text/css" href="~/Content/jquery-easyui-1.4.5/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="~/Content/jquery-easyui-1.4.5/themes/icon.css" />
	@Styles.Render("~/Content/css")
	@Styles.Render("~/Content/stylecss")
	@Scripts.Render("~/bundles/modernizr")
	@Scripts.Render("~/bundles/jquery")
	<script type="text/javascript" charset="utf-8" src="~/Scripts/jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="~/Scripts/jquery-easyui-1.4.5/locale/@ViewBag.EasyUiLanguage"></script>
	@Scripts.Render("~/bundles/common")
	<script type="text/javascript" charset="utf-8" src="~/Scripts/layer/layer.js"></script>
	<script type="text/javascript" src="~/Scripts/jquery-easyui-1.4.5/myjs.dialog.js"></script>
	<link rel="stylesheet" type="text/css" href="~/Content/Site.css" />
	<link rel="stylesheet" type="text/css" href="~/Content/Style.css" />
	<script type="text/javascript">
		$(function () {
			var language = "";
			@if (Request.Cookies["_culture"] == null) {
				<text>
				language = "@((User as ICISPrincipal).Language)";
				</text>
			} else {
				<text>
				language = "@Request.Cookies["_culture"].Value";
				</text>
			}

			if (language == "@ConstValues.Language.Cn") {
				$("#cultureCn").css("background-color", "#c30d23");
				$("#cultureEn").css("background-color", "#7c7c7c");
				$("#mlogo").append('<img id="logo" src="../Images/homeImg/logo.png" />');
				$("#hidCulture").val(language);

				$("#cultureEn").hover(function () {
					$(this).css("color", "#c30d23");
					$(this).css("background-color", "#fff");
				}, function () {
					$(this).css("color", "#fff");
					$(this).css("background-color", "#7c7c7c");
				})
			} else {
				$("#cultureCn").css("background-color", "#7c7c7c");
				$("#cultureCn").css("borderRight", "0px");
				$("#cultureEn").css("background-color", "#c30d23");
				$("#mlogo").append('<img id="logo" src="../Images/homeImg/login_enlogo2.png" />')
				$("#hidCulture").val(language);

				$("#cultureCn").hover(function () {
					$(this).css("color", "#c30d23");
					$(this).css("background-color", "#fff");
				}, function () {
					$(this).css("color", "#fff");
					$(this).css("background-color", "#7c7c7c");
				})
			}
		});
	</script>
</head>
<body id="main">
	<div class="mar" style="position:relative;z-index:999;overflow:hidden;">
		<div class="index">
			<!-- header start -->
			<div class="header02">
				<div class="t">
					<div class="fl"><img src="~/Images/homeImg/icon_01.png" align="absmiddle" width="16" />&nbsp;&nbsp;@Resources.Welcome@((User as ICISPrincipal).UserName)</div>
					<div class="fl">
						@using (Html.BeginForm(nameof(UtilityController.SetCulture), nameof(UtilityController).GetControllerName(), FormMethod.Post, new { id = "frmCulture" }))
						{
							<a href="javascript:$('#hidCulture').val('@ConstValues.Language.Cn');$('#frmCulture').submit();" id="cultureCn" class="cn">@Resources.Chinese</a>
							<a href="javascript:$('#hidCulture').val('@ConstValues.Language.En');$('#frmCulture').submit();" id="cultureEn" class="en">@Resources.English</a>
							<input type="hidden" id="hidCulture" name="culture"  />
						}
					</div>
					<div class="fl">
						<a href="@Url.Action(nameof(ProfileEditController.Index), nameof(ProfileEditController).GetControllerName())">@Resources.Menu_UserCenter</a>
						@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).IsCA) {
							<a href="@Url.Action(nameof(ConferenceHomeController.Index), nameof(ConferenceHomeController).GetControllerName())">@Resources.Menu_ConferenceManage</a>
						}
						@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).IsSA) {
							<a href="@Url.Action(nameof(SysConferenceMasterController.Index), nameof(SysConferenceMasterController).GetControllerName())">@Resources.Menu_SystemManage</a>
						}
						<a href="@Url.Action(nameof(MeetingApplyController.Index), nameof(MeetingApplyController).GetControllerName())">@Resources.MeetingApply</a>
					</div>
					<div class="fl">
						@using (Html.BeginForm(nameof(AccountController.LogOff), nameof(AccountController).GetControllerName(), FormMethod.Post, new { id = "frmLogoff" }))
						{
							@Html.AntiForgeryToken();
							<a href="javascript:$('#frmLogoff').submit();" class="qt">@Resources.Exit</a>
						}
					</div>
				</div>
				<div class="clear"></div>
			</div>
			<!-- header end -->
			<!-- container start -->
			<div class="container">
				<div class="fl" id="mlogo"></div>
				<div class="fr mainmenu">
					<ul>
						<li><a href="@Url.Action(nameof(HomeController.HelpLogin),nameof(HomeController).GetControllerName())"><h3>@Resources.Help</h3></a></li>
						<li><a href="#" class="s"><h3>@Resources.AboutUs</h3></a></li>
						<li><a href="@Url.Action(nameof(MeetingListController.Index),nameof(MeetingListController).GetControllerName())"><h3>@Resources.MeetingList</h3></a></li>
						<li><a href="@Url.Action(nameof(HomeController.Index),nameof(HomeController).GetControllerName())"><h3>@Resources.HomePage</h3></a></li>
					</ul>
				</div>
				<div class="clear"></div>
			</div>
			<!-- container end -->
		</div>
		<div style="min-height:calc(100vh - 266px);">
			<!-- banner start -->
			<div class="abbanner">
				<img src='@Url.Action(nameof(UtilityController.BannerImg), nameof(UtilityController).GetControllerName())?id=@Model.Id'>
			</div>
			<!-- banner end -->
			<div class="index">
				@Html.Raw(!string.IsNullOrEmpty(Model.MainText) ? Model.MainText.Replace("\"", "'") : string.Empty)
			</div>
		</div>
		<div class="clear"></div>
		<!-- footer start -->
		<div class="footer" style="margin-top:0px">
			<p>&copy;@Resources.CopyRightOfCisSystem</p>
			<p id="CopyRightId" style="margin-top:-70px">
				<a href="@Resources.CopyRightOfCisSystemLinkOne" target="_blank" style="color:#999">@Resources.CopyRightOfCisSystemOne &nbsp;&nbsp;</a>
				<a href="@Resources.CopyRightOfCisSystemLinkTwo" target="_blank" style="color:#999"><img src="~/Images/police.png" style="position:relative; top:4px;" />@Resources.CopyRightOfCisSystemTwo</a>
			</p>
		</div>
		<!-- footer end -->
	</div>
</body>
</html>